import random
print('**********石头、剪刀、布**********\n'
      '1.石头\n'
      '2.剪刀\n'
      '3.布\n')
Computer = random.choice(('石头','剪刀','布','认输'))
Player = input('请出拳:')
Player = input(Player)
if Computer =='石头':
    if Player == 1:
        print('\n对手出:石头\n'
              '你出:石头\n'
              '结果:平局')
    elif Player == 2:
        print('\n对手出:石头\n'
              '你出:剪刀\n'
              '结果:对手赢')
    elif Player == 3:
        print('\n对手出:石头\n'
              '你出:布\n'
              '结果:你赢了')
    else:
        print('输入有误')
elif Computer == '剪刀':
    if Player == 1:
        print('\n对手出:剪刀\n'
              '你出:石头\n'
              '结果；你赢了')
    elif Player ==2:
        print('\n对手出:剪刀\n'
              '你出:剪刀\n'
              '结果:平局')
    elif Player == 3:
        print('\n对手出:剪刀\n'
              '你出:布\n'
              '结果:对手赢')
    else:
        print('输入有误')
elif Computer == '布':
    if Player == 1:
        print('对手出:布\n'
              '你出:石头\n'
              '结果:对手赢')
    elif Player == 2:
        print('\n对手出:布\n'
              '你出:剪刀\n'
              '结果:你赢了')
    elif Player == 3:
        print('\n对手出:布\n'
              '你出:布\n'
              '结果:平局')
    else :
        print('输入有误')
else:
    print('对手认输，你赢了')